% Test `MultiLabelChiSquareFilter'

%%

clear classes
clc

%%

generate_dataset_iris;

%%

mlabelChiSquareFilter = MultiLabelChiSquareFilter();

%%

% mlabelChiSquareFilter.setStrategy('max');
mlabelChiSquareFilter.build(ds.dmX.mat, ds.dmY.mat);
mlabelChiSquareFilter.model.zRank

mlabelChiSquareFilter.setStrategy('min');
mlabelChiSquareFilter.build(ds.dmX.mat, ds.dmY.mat);
mlabelChiSquareFilter.model.zRank

mlabelChiSquareFilter.setStrategy('avg');
mlabelChiSquareFilter.build(ds.dmX.mat, ds.dmY.mat);
mlabelChiSquareFilter.model.zRank

mlabelChiSquareFilter.setFeatureSubsetSize(2);
result = mlabelChiSquareFilter.apply(ds.dmX.mat, ds.dmY.mat);
